package com.dzx.design.principle.dependenceinversion;

/**
 * @author dzx
 * @ClassName:
 * @Description: 依赖倒置原则
 * @date 2019年06月21日 14:48:43
 */
public class Test {
    public static void main(String[] args) {
//             Dzx dzx = new Dzx();
//             dzx.studyJavaCourse();
//             dzx.studyFECourse();

//        Dzx dzx = new Dzx();
//        dzx.studyImoocCourse(new JavaCourse());
//        dzx.studyImoocCourse(new FECourse());
//        dzx.studyImoocCourse(new PythonCourse());

//        Dzx dzx = new Dzx(new JavaCourse());
//        Dzx dzx1 = new Dzx(new FECourse());
//        Dzx dzx2 = new Dzx(new PythonCourse());
//        dzx.studyImoocCourse();
//        dzx1.studyImoocCourse();
//        dzx2.studyImoocCourse();

        Dzx dzx = new Dzx();
        dzx.setiCourse(new JavaCourse());
        dzx.studyImoocCourse();
        dzx.setiCourse(new FECourse());
        dzx.studyImoocCourse();
        dzx.setiCourse(new PythonCourse());
        dzx.studyImoocCourse();

    }
}
